<?
require("config.php");
$langname = 'aevening';
require("header.php");

 function after ($this, $inthat)
   {
       if (!is_bool(strpos($inthat, $this)))
       return substr($inthat, strpos($inthat,$this)+strlen($this));
   };

   function before ($this, $inthat)
   {
       return substr($inthat, 0, strpos($inthat, $this));
   };

function between ($this, $that, $inthat)
   {
     return before($that, after($this, $inthat));
   };

?>











<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 

    <td width="186" valign="top"> 
      <?require("nav.php")?>
    </td>
    <td width="11"><img src="images/shim.gif" width="11" height="1"></td>
    <td valign="top"> 
      <?require("menu.php")?>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td align="right"><table width="100%" border="0">
              <tr> 
                <td height="50" class="header">&gt;&gt; Acuity Evening </td>
              </tr>
            </table></td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td>
						<?php
						
						$q = "select details from med_display_content where code='aevening'";

$r = myQuery($q);
						
						
						
						
						
						?>
						
						
						<?=$r[0][0]?><br /><br />
						
						
						
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr align="center" bgcolor="7FA2C9"> 
                  <td width="39%" height="20" bgcolor="7FA2C9"><strong><font color="#FFFFFF">Acuity Evening</font></strong></td>
                  <td width="22%" height="10" bgcolor="7FA2C9"><strong><font color="#FFFFFF">Presenter</font></strong></td>
                  <td width="11%" bgcolor="7FA2C9"><strong><font color="#FFFFFF"> 
                    Language</font></strong></td>
                  <td width="9%" bgcolor="7FA2C9"><strong><font color="#FFFFFF"> 
                    Date</font></strong></td>
                  <td width="9%" bgcolor="7FA2C9"><strong><font color="#FFFFFF">Country</font></strong></td>
                  <td width="10%" bgcolor="7FA2C9"><strong><font color="#FFFFFF"> 
                    </font></strong></td>
                </tr>
                <tr> 
                  <td colspan="6" bgcolor="7FA2C9"><table width="100%" border="0" cellspacing="1" cellpadding="0">
     <?

$table = "med_aevening";
$today=date("Y-m-d");
$field = array(
"id",
"presented",
"date",
"country",
"contact",
"order_index",
"time","country2","course_link", "trainer_link",
);




$exp = "And status='Yes' order by order_index, date";

$r = unlimitQuery($table,$field,$exp);

if ($r){
for ($i=0;$i<count($r);$i++){

?>
 
            
                      <tr align="center" valign="middle" bgcolor="#FFFFFF"> 
                        <td width="39%"><a href="<?=$r[$i][8]?>"><?=$r[$i][1]?></a></td>
                        <td width="22%" bgcolor="#FFFFFF"><a href="<?=$r[$i][9]?>"><?=$r[$i][4]?></a></td>
                        <td width="11%"><?=$r[$i][3]?></td>
                        <td width="9%"><?=$r[$i][2]?></td>
                        <td width="9%">
												<?
switch ($r[$i][7]) {

  case "Denmark":
	echo "<img src='images/danmai.gif' width='35' height='24'>";
	break;
	  case "Hong Kong":
	echo "<img src='images/hk.gif' width='35' height='24'>";
	break;
	  case "China":
	echo "<img src='images/china.gif' width='35' height='24'>";
	break;
	  case "Sweden":
	echo "<img src='images/sweden.gif' width='35' height='24'>";

	break;
	default:
	echo $r[$i][7];
	break;
}
?>						</td>
                        <td width="10%">&nbsp;<br />
                        <a href="aevening_enroll.php?id=<?=$r[$i][0]?>">sign up</a>
						<br><a href="javascript:Redirect('aevening_detail.php?id=<?=$r[$i][0]?>',5)">
                        details</a><br />&nbsp;</td>
                      </tr>

<?php }} ?>
                   </table></td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
  

 

</td>
    <td width="11"><img src="images/shim.gif" width="11" height="1"></td>
    <td width="173" valign="top">
	
	
<?require("list.php")?>	
	  
	  
    </td>

  </tr>
</table>





<?require("footer.php")?>
